package com.blb.pojo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.sql.Time;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("course")
public class Course implements Serializable {

  //课程方向
  @TableField(exist = false)
  private CourseOrientation orientation;
  //类型
  @TableField(exist = false)
  private CourseType type;
  //讲师
  @TableField(exist = false)
  private CourseTeacher teacher;
  //章节
  @TableField(exist = false)
  private List<CourseSection> courseSections;
  //课程活动
  @TableField(exist = false)
  private CourseActivity activity;

  @TableId(type = IdType.AUTO)
  private Long id;
  private String courseName;
  private String brief;
  private Double price;
  private String priceTag;
  private Double discounts;
  private String discountsTag;
  private String courseDescriptionMarkDown;
  private String courseDescription;
  private String courseImgUrl;
  private Long isNew;
  private String isNewDes;
  private Long lastOperatorId;
  private LocalDateTime autoOnlineTime;
  private Timestamp createTime= Timestamp.valueOf(LocalDateTime.now());
  private Timestamp updateTime= Timestamp.valueOf(LocalDateTime.now());
  private Long isDel;
  private Long totalDuration;
  private Long status;
  private Long sortNum;
  private String previewFirstField;
  private String previewSecondField;
  private Long sales;
  private Long typeId;
  private Long orientationId;
  private Long teacherId;

}
